package com.springIOC.Aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Created by 41579 on 2017/1/7.
 */
@Aspect
public class MyAspectj1 {
    @Pointcut("execution(public void test())")
    public void signature1(){};

    @Pointcut("signature1()||execution(public void test6())")
    public void signature2(){};

    @Pointcut("@annotation(com.springIOC.Annotation.WithinAnnotation)")
    public void signature3(){};

    @Before("signature3()")
    public void before(){
        System.out.println("Aspectj before....");
    }

}
